/*

*  Ver: "1.0.0.0"

* 修正IE6下面的position中的fixed的显示问题

*  author：fly_binbin

*  Blog: http://daylog.sinaapp.com

*  E-Mail:legend.binbin.fly@gmail.com

*  Copyright: "Copyright @ 211-2012 fly_binbin Technology Software All Rights Reserved",

*  License: "GPL"

*  $("ID Or Clss").ie6fixedbug();

*/

$.fn.extend({

    ie6fixedbug: function () {

        $(this).css("position", "absolute");

        var m = (window.screen.height - $(this).height()) / 4;

        var obj = $(this)[0];

        window.onscroll = function () {

            obj.style.top = (document.body.scrollTop || document.documentElement.scrollTop) + m + 'px';

        }

        window.onresize = function () {

            obj.style.top = (document.body.scrollTop || document.documentElement.scrollTop) + m + 'px';

        }

    }

 

});   